home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Frameworks / SCAPI 0.85 / Spunk Cross API 1.0 / WinSCAPI / Headers / SCAPIApp.h next >
Encoding:
Text File  |  1997-06-19  |  1.7 KB  |  77 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    SCAPIApp.h                   ©1997 Spunk Cross         All rights reserved.
  3. // ===========================================================================
  4.  
  5. #ifndef SCAPIAPP_H
  6. #define SCAPIAPP_H
  7.  
  8. #include "SCAPICommonIncludes.h"
  9. #include "SCAPIMenuBar.h"
  10.  
  11.  
  12. // ---------------------------------------------------------------------------
  13. //        MFCApp Class
  14. // ---------------------------------------------------------------------------
  15.  
  16. class MFCApp : public CWinApp
  17. {
  18.     public:
  19.         virtual BOOL     InitInstance();
  20.         virtual BOOL    OnIdle(LONG    lCount);
  21.         DWORD    mRefTick;
  22. };
  23.  
  24.  
  25. // ---------------------------------------------------------------------------
  26. //        SCAPIApp Class
  27. // ---------------------------------------------------------------------------
  28.  
  29. class SCAPIApp
  30. {
  31.     friend class SCAPIWindow;
  32.     friend class SCAPIWindowMDIFrame;
  33.  
  34.     // ===========================================================
  35.     // === Spunk Cross API, these are the routines you can use ===
  36.     // ===========================================================
  37.     
  38.         // Constructor
  39.         // -----------
  40.         
  41.     public:
  42.     
  43.         SCAPIApp(int*    argcP, char***    argvP);
  44.         
  45.         
  46.         // Member functions
  47.         // ----------------
  48.         
  49.     public:
  50.         
  51.         void                AssociateMenuBar(SCAPIMenuBar*    inMenuBarP);
  52.         
  53.         
  54.     protected:
  55.     
  56.         virtual void        ExecuteCommand(int    inCommand);
  57.         
  58.         virtual void        CommandStatus(    int        inCommand,
  59.                                             bool    &outEnabled,
  60.                                             int        &outMark,
  61.                                             char*    outName            );
  62.         
  63.         
  64.     // =================================
  65.     // === Internal part, do not use ===
  66.     // =================================
  67.         
  68.         // Member variables
  69.         // ----------------
  70.         
  71.     private:
  72.         
  73.         MFCApp*                mMFCAppInstanceP;
  74.         SCAPIMenuBar*        mMenuBarP;
  75. };
  76.  
  77. #endif